\documentclass[a4paper, spanish]{article}

\usepackage{caratula}
%\usepackage[latin1]{inputenc}
\usepackage[utf8]{inputenc}
\usepackage{listings}
\usepackage[spanish, activeacute]{babel}
\usepackage{amsmath}

\usepackage{fancyhdr}

\usepackage[x11names, rgb]{xcolor}

\usepackage{tikz}
\usetikzlibrary{snakes,arrows,shapes}
\usepackage{amsmath}

\usepackage{listings} 
\usepackage{graphicx}

\usepackage{amsfonts}
\usepackage{amssymb}

\setlength{\oddsidemargin}{9pt}
\setlength{\textwidth}{480pt}
\setlength{\evensidemargin}{23pt}
\setlength{\topmargin}{14pt}
\setlength{\headheight}{11pt}
\setlength{\headsep}{9pt}
\setlength{\textheight}{45\baselineskip}
\setlength{\footskip}{26pt}
\setlength{\parskip}{2ex}

\begin{document}
\input{caratula.tex}
  
\newpage
\input{contenido.inc.tex}

\end{document}

